using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Threading;

namespace RIVER_RAID
{
    public enum tipoObstaculo {Ilha,Arvore,Barco,AviaoInimigo};
     class Obstaculo
    {
         public Vector2 pos;
         public int altura ;
         public int largura;
         private Thread thr;
         

         public tipoObstaculo tipo;
         
         public Obstaculo(tipoObstaculo t,float x, float y)
         {
             tipo = t;
             altura = 15;
             largura = 20;
             pos = new Vector2(x, y);
             thr = new Thread(new ThreadStart(descer));
         }
          public void descer()
         {
             while (true)
             {
                 pos.Y++;
                 Thread.Sleep(1000/60);
             }
         }

         public void Disparar(){

             thr.Start();
         }

    }
}
